package com.nsfocus.service;

import com.nsfocus.domain.Country;
import com.nsfocus.mapper.CountryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by dell on 2018/1/5 0005.
 */
@Service
public class CountryService {
    @Autowired
    private CountryMapper countryMapper;

    public Country getCountry(Integer id){
        Country country = null;
        if(id == null){
            return  country;
        }
        country = countryMapper.selectByPrimaryKey(id);
        return country;
    }
}
